import { get } from '../get'
import { request } from '../request'


export const addUser = (userName) => {
  return request.post('/employee', {
    name: userName
  })
}
export const updateUser = (id) => {
  return request.put(`/employee/${id}`)
}

export const getAllRole = () => {
  return get.get('/role')
}
export const getUsers = () => {
  return get.get('/role/menu')
}